package com.lin.cloud.feign;

import com.lin.entity.JsonResult;
import com.lin.entity.Student;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.HashSet;

/**
 * @author longyang.lin
 * @description
 * @create 2018年03月21日10:20
 */
@FeignClient(value = "EUREKA-PROVIDER")
public interface ConsumerFeign {
    @RequestMapping(value = "/provider/getName/{name}", method = RequestMethod.GET)
    String getName(@PathVariable("name") String name);

    @PostMapping(value = "/provider/insertStudent")
//    @RequestMapping(value = "/provider/insertStudent", method = RequestMethod.POST)
    JsonResult insertStudent(@RequestBody Student student);
}
